
package com.xuxk.project.library.bean;
import java.io.Serializable;

import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;

/**
 * XuxkMenu Base Java Bean, base class for the model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 * @author 橙云科技有限公司
 * 菜单信息表
 */
public class XuxkMenu  implements Serializable {

    protected Integer id;
	protected String menuName;
	protected String menuUrl;
	protected Integer mStatus;
	protected java.util.Date createTime;
	protected Integer menuType;
	protected Integer prarentId;


	/**
	 * Default Empty Constructor for class XuxkMenu
	 */
	public XuxkMenu () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class XuxkMenu
	 */
	public XuxkMenu (
		 Integer in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Integer
	 */
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Integer aValue) {
		this.id = aValue;
	}	

	/**
	 * 菜单名称	 * @return String
	 */
	public String getMenuName() {
		return this.menuName;
	}
	
	/**
	 * Set the menuName
	 */	
	public void setMenuName(String aValue) {
		this.menuName = aValue;
	}	

	/**
	 * 菜单地址	 * @return String
	 */
	public String getMenuUrl() {
		return this.menuUrl;
	}
	
	/**
	 * Set the menuUrl
	 */	
	public void setMenuUrl(String aValue) {
		this.menuUrl = aValue;
	}	

	/**
	 * 状态：1-有效；0-无效	 * @return Integer
	 */
	public Integer getMStatus() {
		return this.mStatus;
	}
	
	/**
	 * Set the mStatus
	 */	
	public void setMStatus(Integer aValue) {
		this.mStatus = aValue;
	}	

	/**
	 * 创建时间	 * @return java.util.Date
	 */
	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	/**
	 * Set the createTime
	 */	
	public void setCreateTime(java.util.Date aValue) {
		this.createTime = aValue;
	}	

	/**
	 * 菜单类型：1-菜单，2-按钮	 * @return Integer
	 */
	public Integer getMenuType() {
		return this.menuType;
	}
	
	/**
	 * Set the menuType
	 */	
	public void setMenuType(Integer aValue) {
		this.menuType = aValue;
	}	

	/**
	 * 父id	 * @return Integer
	 */
	public Integer getPrarentId() {
		return this.prarentId;
	}
	
	/**
	 * Set the prarentId
	 */	
	public void setPrarentId(Integer aValue) {
		this.prarentId = aValue;
	}	

	/**
	 * @see Object#equals(Object)
	 */
	@Override
	public boolean equals(Object object) {
		if (!(object instanceof XuxkMenu)) {
			return false;
		}
		XuxkMenu rhs = (XuxkMenu) object;
		return new EqualsBuilder()
				.append(this.id, rhs.id)
				.append(this.menuName, rhs.menuName)
				.append(this.menuUrl, rhs.menuUrl)
				.append(this.mStatus, rhs.mStatus)
				.append(this.createTime, rhs.createTime)
				.append(this.menuType, rhs.menuType)
				.append(this.prarentId, rhs.prarentId)
				.isEquals();
	}

	/**
	 * @see Object#hashCode()
	 */
	@Override
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.id) 
				.append(this.menuName) 
				.append(this.menuUrl) 
				.append(this.mStatus) 
				.append(this.createTime) 
				.append(this.menuType) 
				.append(this.prarentId) 
				.toHashCode();
	}

	/**
	 * @see Object#toString()
	 */
	@Override
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", this.id) 
				.append("menuName", this.menuName) 
				.append("menuUrl", this.menuUrl) 
				.append("mStatus", this.mStatus) 
				.append("createTime", this.createTime) 
				.append("menuType", this.menuType) 
				.append("prarentId", this.prarentId) 
				.toString();
	}

	/**
	 * Return the name of the first key column
	 */

}